import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class EReward
    
    export  class EReward
    {
        constructor(arg1: int)
        {
            
            this.__value = arg1;
            return;
        }

        public value(): int
        {
            return this.__value;
        }

        public __write(arg1: SerializeStream): void
        {
            arg1.writeByte(this.__value);
            return;
        }

        public static convert(arg1: int): EReward
        {
            return new EReward(arg1);
        }

        public static __read(arg1: SerializeStream): EReward
        {
            var loc1=arg1.readByte();
            if (loc1 < 0 || loc1 >= 20) 
            {
                throw new MarshalException();
            }
            return EReward.convert(loc1);
        }

        public static /* const */_ERewardExperience: int=1;

        public static /* const */_ERewardCoin: int=2;

        public static /* const */_ERewardItem: int=3;

        public static /* const */_ERewardCoinBind: int=4;

        public static /* const */_ERewardGoldBind: int=5;

        public static /* const */_ERewardHonour: int=6;

        public static /* const */_ERewardArena: int=7;

        public static /* const */_ERewardPrestige: int=8;

        public static /* const */_ERewardPoint: int=9;

        public static /* const */_ERewardContribution: int=10;

        public static /* const */_ERewardBloom: int=11;

        public static /* const */_ERewardGuildMoney: int=12;

        public static /* const */_ERewardNimbus: int=13;

        public static /* const */_ERewardPetCoin: int=14;

        public static /* const */_ERewardBufferGroup: int=15;

        public static /* const */_ERewardDiceCount: int=16;

        public static /* const */_ERewardTaskGroup: int=17;

        public static /* const */_ERewardCountryContribution: int=18;

        public static /* const */_ERewardRobFlagHonour: int=19;

        public /* var */__value: int;
    }
